package com.anton46.collectionitempicker;


import ohos.app.Context;

public class Utils {

    public static int vpToPx(Context context, int dp) {
        int density = context.getResourceManager().getDeviceCapability().screenDensity / 160;
        return Math.round(dp * density);
    }

}
